# This imports all the layers for "xjj2" into xjj2Layers
sketch = Framer.Importer.load "imported/xjj2"
sketch.visible = false
sketch.ding1.width = 640

# Create a ScrollComponent
# scroll = new ScrollComponent
#     width: 1200, height: 1200
# 
# # Create the content layers
# layerA = new Layer
#     width: 750, height: 96
#     superLayer: scroll.content
# 
# layerB = new Layer
#     width: 750, height: 96, y: 106
#     superLayer: scroll.content
#     # Listen to any page switch
# 
# page = PageComponent.wrap(sketch.ding1)
# 
# page.on "change:currentPage", ->
#     for layer in indicators
#         layer.animate
#             properties: { opacity: 0.5 }
#             time: 0.2
# 
#     current = page.currentPage
#     i = page.horizontalPageIndex(current)
# 
#     indicators[i].animate
#         properties: opacity: 1
#         time: 0.2